import Vue from 'vue'
import * as types from './mutation-types'

export default {
	[types.SET_USER_INFO](state, data) {
		Vue.set(state, 'userInfo', data)
	},
	[types.SET_MNEMONIC](state, data) {
		Vue.set(state, 'mnemonic', data)
	},
	[types.LOG_OUT](state, data) {
		Vue.set(state, 'userInfo', {})
	},
	[types.SET_WALLET_INFO](state, data) {
		Vue.set(state, 'wallet', data)
	},
	[types.SET_UPDATE](state, data) {
		Vue.set(state, 'update', data)
	}
}
